//
//  FifthViewController.m
//  多次present控制器
//
//  Created by chenleping on 2018/7/11.
//  Copyright © 2018年 IAPTest. All rights reserved.
//

#import "FifthViewController.h"

#import "SixthViewController.h"
@interface FifthViewController ()

@end

@implementation FifthViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor purpleColor];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    SixthViewController * sixthVC = [[SixthViewController alloc] init];
    
    [self.navigationController pushViewController:sixthVC animated:YES];
    
//    UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:sixthVC];
//    [self presentViewController:nav animated:YES completion:nil];
    
//    [self presentViewController:sixthVC animated:YES completion:nil];
}

@end
